home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / em-xmkit.zip / EMM28_H.ASM < prev    next >
Assembly Source File  |  1989-11-29  |  3KB  |  71 lines

  1. ;-----------------------------------------------------------------------------;
  2. ;      MODULE NAME:   EMM28_H.ASM                                             ;
  3. ;                                                                             ;
  4. ; OS FUNCTION NAME:   disable_DMA_reg_set                                     ;
  5. ;                                                                             ;
  6. ;      DESCRIPTION:   This function disables DMA accesses for all DMA         ;
  7. ;                     channels which were associated with a specific          ;
  8. ;                     alternate DMA register set.                             ;
  9. ;                                                                             ;
  10. ;           PASSED:   DMA_reg_set:                                            ;
  11. ;                        is the number of the DMA register set for which all  ;
  12. ;                        operations are to be disabled.  If the DMA set       ;
  13. ;                        specified is zero, no action will be taken.          ;
  14. ;                                                                             ;
  15. ;         RETURNED:   status:                                                 ;
  16. ;                        is the status EMM returns from the call.  All other  ;
  17. ;                        returned results are valid only if the status        ;
  18. ;                        returned is zero.  Otherwise they are undefined.     ;
  19. ;                                                                             ;
  20. ; C USE CONVENTION:   unsigned int status;                                    ;
  21. ;                     unsigned int DMA_reg_set;                               ;
  22. ;                                                                             ;
  23. ;                     status = disable_DMA_reg_set (DMA_reg_set);             ;
  24. ;-----------------------------------------------------------------------------;
  25. .XLIST
  26. PAGE    60,132
  27.  
  28. IFDEF SMALL
  29.    .MODEL SMALL, C
  30. ENDIF
  31. IFDEF MEDIUM
  32.    .MODEL MEDIUM, C
  33. ENDIF
  34. IFDEF LARGE
  35.    .MODEL LARGE, C
  36. ENDIF
  37. IFDEF COMPACT
  38.    .MODEL COMPACT, C
  39. ENDIF
  40. IFDEF HUGE
  41.    .MODEL HUGE, C
  42. ENDIF
  43.  
  44. INCLUDE emmlib.equ
  45. INCLUDE emmlib.str
  46. INCLUDE emmlib.mac
  47. .LIST
  48. .CODE
  49.  
  50. disable_DMA_reg_set    PROC                                                  \
  51.             DMA_reg_set:WORD
  52.  
  53.     ;---------------------------------------------------------------------;
  54.     ;   do;                                                               ;
  55.     ;   .   disable DMA into expanded memory using the DMA register set   ;
  56.     ;   .   specified by the OS;                                          ;
  57.     ;---------------------------------------------------------------------;
  58.     MOVE        AX, disable_dma_on_alt_map_regs_fcn 
  59.     MOVE        BX, DMA_reg_set
  60.     INT         EMM_int
  61.  
  62.     ;---------------------------------------------------------------------;
  63.     ;   .   return (EMM status);                                          ;
  64.     ;   end;                                                              ;
  65.     ;---------------------------------------------------------------------;
  66.     RET_EMM_STAT    AH
  67.  
  68. disable_DMA_reg_set        ENDP
  69.  
  70. END
  71.